package br.edu.faculdadeprojecao.si.sisecon.action;

import java.util.List;

import br.edu.faculdadeprojecao.si.sisecon.model.AbstractModel;

@SuppressWarnings("rawtypes")
public abstract class TypedAction<T extends AbstractModel> extends AbstractAction {
	
	private static final long serialVersionUID = 1L;
	
	protected T instance;
	
	public T getInstance() {
		return instance;
	}
	
	public abstract List<T> getResultList();
	
	public void load() {
		beginConversation();
	}
	
	public abstract String salvar();
	
	public abstract String excluir(T entity);

}
